//
//  HttpManger.m
//  youthNote
//
//  Created by huangrensheng on 16/6/8.
//  Copyright © 2016年 laber. All rights reserved.
//

#import "HttpManger.h"

//#define APIBaseUrl @"http://localhost:8080/bbsServices/"
#define APIBaseUrl @"http://172.16.213.125:8080/bbsServices/"

@interface HttpManger()

@property (nonatomic,strong) HRSRequestNetWorking *hrsRequest;

@end

@implementation HttpManger

static HttpManger *shared;

+ (instancetype)shareHttpManage{
    static dispatch_once_t _once;
    dispatch_once(&_once, ^{
        shared = [[HttpManger alloc] init];
    });
    return shared;
}

- (void)postWithUrl:(NSString *)url params:(NSDictionary *)params success:(successResponse)success error:(errorResponse)errors{
    self.hrsRequest = [[HRSRequestNetWorking alloc] init];
    [self.hrsRequest postWithUrl:[NSString stringWithFormat:@"%@%@",APIBaseUrl,url] params:params success:success error:errors];
}


@end
